package com.intellagric.service.agritech;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.AgtComment;

/**
 * @Author: cwq
 * @Date: 2019/2/21 15:50
 * @Description:
 */
public interface CommentService {
    //增加
    ResponseMessage addComment(AgtComment comment);

    //删除
    ResponseMessage deleteComment(String id);

    //修改
    ResponseMessage editComment(AgtComment comment);

    //查询
    AgtComment getCommentById(String id);
    LayuiDataGridResult getCommentList();

    //通过父分类查询
    LayuiDataGridResult getCommentByPid(String pId);
    //查询分类信息，并生成树形数据
    LayuiDataGridResult getCommentTree();
}
